@(projectId: Long, testSuiteId: Long, testCases: List[Resource])

@import play.i18n._

<table class="test-cases-list">
	<tr>
		<th class="test-case-name">@Messages.get("view.testcases.column.name.header")</th>
		<th class="test-case-description">@Messages.get("view.testcases.column.desc.header")</th>
		<th class="test-case-created-date">@Messages.get("view.testcases.column.createddate.header")</th>
		<th class="test-case-last-modified-date">@Messages.get("view.testcases.column.lastmodified.header")</th>
		<th class="test-case-run-tests">@Messages.get("view.testcases.column.tests.header")</th>
	</tr>
	@for(testCase <- testCases) {
		<tr>
			<td class="test-case-name">@testCase.getName()</td>
			<td class="test-case-description">@testCase.getDescription()</td>
			<td class="test-case-created-date">@testCase.getCreatedDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="test-case-last-modified-date">@testCase.getLastModifiedDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
				@if(testCase.getProject().getDefaultConfiguration() != null) {
					<td class="test-case-run-tests"><a href="@routes.TestCases.runTestWithDefaultConfig(projectId, testSuiteId, testCase.getId())" class="run-tests open-popup" title="@Messages.get("view.testcases.list.test.title") (@testCase.getProject().getDefaultConfiguration().getName())">@Messages.get("view.testcases.list.test.link") &raquo;</a></td>
				}
		</tr>
	}
</table>
